package com.jackeysun.widget

import android.app.Dialog
import android.content.Context
import android.view.Gravity

/**
 *   Created by sunxunchao on 2021/11/24.
 */
class LoadingDialog(context: Context) : Dialog(context, R.style.NoTitleDialogStyle) {

    init {
        setContentView(R.layout.dialog_loading)
        val params = window?.attributes
        params?.gravity = Gravity.CENTER
        window?.attributes = params
        setCanceledOnTouchOutside(false)
    }

}